package test;

public class Teacher extends People {
	 String TeachLesson;  
	    String name;  
	    Teacher(int code, String name, char sex, String lesson) {
	     super(code, name, sex); 
	        this.TeachLesson = lesson; 
	        this.name=name;
	        setName(name);  
	        }    
		public String toString() {
	    	return "教师编号:" + getCode() + "教师姓名:"+getName()+"教师性别:"+getSex() ;
	    }  
} 